/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package inet.controller;

import inet.dao.demoDAO;
import inet.entity.ReportTimeKeeping;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author ÂuNgọcThái
 */
@ManagedBean
@SessionScoped
public class ReportTimeKeepingController {

    /**
     * Creates a new instance of ReportTimeKeepingController
     */
    ReportTimeKeeping rTK= null;
    demoDAO demoDAO =null;
    List<ReportTimeKeeping> lstRTK = null;

    public List<ReportTimeKeeping> getLstRTK() {
        return lstRTK;
    }

    public void setLstRTK(List<ReportTimeKeeping> lstRTK) {
        this.lstRTK = lstRTK;
    }
            
    public ReportTimeKeepingController() {
        rTK = new  ReportTimeKeeping();
        demoDAO = new demoDAO();
    }

    public ReportTimeKeeping getrTK() {
        return rTK;
    }

    public void setrTK(ReportTimeKeeping rTK) {
        this.rTK = rTK;
    }

    public demoDAO getDemoDAO() {
        return demoDAO;
    }

    public void setDemoDAO(demoDAO demoDAO) {
        this.demoDAO = demoDAO;
    }
    
    public List<ReportTimeKeeping> getList(){
        demoDAO = new demoDAO();
        return lstRTK = demoDAO.getAllTime();
    }
    
}
